"""
创建并返回各种浏览器对象
"""

from selenium import webdriver


def chrome():
    """创建google浏览器"""
    driver = webdriver.Chrome()
    driver.maximize_window()
    driver.implicitly_wait(30)
    return driver


def firefox():
    """创建火狐浏览器"""
    driver = webdriver.Firefox()
    driver.maximize_window()
    driver.implicitly_wait(30)
    return driver


